﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace WebApplication_GrpcServer.Services
{
    public class FakeTestDataBase
    {
        static FakeTestDataBase()
        {
            string nameRandomStr = "伪造的冒充的（动作或感情）虚假的，做作的；假货，贋品；骗子，冒充者；假动作；（绳索、水龙带等的）一圈（=flake）；伪造，冒充；假装，佯装；（尤指体育运动中）做假动作；不懂装懂，不会装会；盘卷（=flake）；【名】 （Fake）（印）费克（人名）";
            Random random = new Random();
            for (int i = 0; i < 10; i++)
            {
                FakeDataBase.Add(new Student
                {
                    Id = i,
                    No = i * 2,
                    Name = nameRandomStr.Substring(random.Next(nameRandomStr.Length - 3), 3),
                    Address = nameRandomStr.Substring(random.Next(nameRandomStr.Length - 3), 10),
                    Phone = random.Next(12546, 12345678).ToString(),
                });

            }
        }

        internal static List<Student> FakeDataBase = new List<Student>();
    }
}
